package com.itheima.supplier.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * Created by 传智播客*黑马程序员.
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "supplier")
public class SupplierProperties {
    private Map<String,String> apis; //加载供应商api地址,key是第三方供应商编号,value是其地址
    private int maxrepeat; //最大重试次数
}
